package com.evildog.workspace.life.application.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 笔记标签
 * </p>
 *
 * @author evildog
 * @since 2020-08-08
 */
@Data
@Accessors(chain = true)
@TableName("life_note_tag")
public class NoteTag implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 日记id
     */
    private Long noteId;

    /**
     * 名称
     */
    private String name;

    /**
     * 删除状态 0 未删除 1 已删除
     */
    @TableLogic
    private Boolean isDeleted;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


}
